package com.booksystem.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   手动调整商品库存入参对象
 * </p>
 * @author 段伟豪
 */
@Data
@ApiModel(description = "手动调整商品库存入参对象")
public class ManualAdjustmentDTO {

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空")
    @ApiModelProperty(value = "商品ID", required = true)
    private Long productId;

    /**
     * 变更数量
     */
    @NotNull(message = "变更数量不能为空")
    @ApiModelProperty(value = "变更数量", required = true)
    private Integer quantityChange;

    /**
     * 操作人
     */
    @NotBlank(message = "操作人不能为空")
    @ApiModelProperty(value = "操作人", required = true)
    private String operator;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}